now reconnect uses parameters which were used previously for connection