added createFoo handler, newFoo method