modified session controller for local env