added layout references and re-required ejs-middleware