retrying connect