simplify package.prepare