moving things around, attempting to use require to allow for external templates