modified install_package to work with added packages