trying to implement automatic reconnect
fix event subscription