split check_packages into its own file to avoid not having the packages the rest of import needs