first cherrypy implementation