fixed session management
fixed reconnect