attach helper methods as locals by extended compiled template functions