rename mec to agent, test passed