fixing various ways of managing packages (download/register/cache)