not working because templateEngine doenst work with amd