improve event management
auto reconnect