add debugging to agent.cgi, make sure warnings are turned off when parsing templates...