passing appPath to require('./session') file instance