fix retryable errors and add curb as dependency