modification to pass more information in the session message