improved reconnecting