refactor(reconnect): move out reconnect to own function
0.1.1