went back to app.path() as req.baseUrl returned undefined