add cgi handler and pubsub index