fixing a bit of output, adding reconnection method
merge