bug fixes

fixed connection already established bug