allow to define max repeat via the binary