update goagentHandler