used ndb and threadsafe 2.7