modified session-manager process