fix #443 trying different way of handling reconnection