checks for updates and installs