Fixed some bugs; added re-connect mode