add conf and command to agent