changed checkForUpdates script