add regex, use directives independently
rebuild