patch time and get retries working more better
use RETRY_ATTEMPTS for outgoing revs