initial implementation of the appengine code