change agent_name to pkg_name