add error handling if no package version is found