fixed templates and made them /begin/ to work