added optional option to matcher match function