added code to see if current version downloaded is the latest version