added a retry policy to the wait methods