some fixes for packages