added packagemanager::clone method