move template functions to Parse scope