added function to check newer versions of a package