rename to package-manager and partial refactor (incomplete)
refactored to use ensure-package-installed and moved some package