fixing ending of agent, actions are specified only in environment, adding Packages env