modify agent, remove some print