enable setting the max_attempts config option
Merge pull request #39 from manveru/master

enable setting the max_attempts config option