stuff for packaging the agent