move edit retries count to configurable option