added support for helpers in res.locals