moved pattern wrappers into appengine helpers