modified session controller to run on local env