reconnect almost implemented