conversion of ejs crap to hamlc