move packageManager to its own package