improve handling of importing packages that have yet to be installed