#176 fixes reconnect