simplified the env["restpack"] hash