cgihandler and fix the bug in robothandler