rewrite. Uses factory to configure parsers with the flag value