implemented #117
moved helpers to templates_helpers