add function to start goagent