well i finally fixed it i uninstalled avast then i backed up to time capsule. I downloaded the new avast and re-installed it and now its running fine. Apparently the in app update for avast only updates the virus database and not the rest of the software. Anyways thanks for all your help guys.