inlined package-helper