patch to work with appengine