updated templates to use new require structure