default_template_handler_func is now not static