set ejs engine, fix routes