mask mode now supports --max-length