set the max_attempts default to 1