fix
reopen closed connections
refactoring
Merge branch 'reconnect'