templates and some helpers written