make pattern configable