added filter method to minimatch

and options optional