rename flags to pattern-flags

to: a) match the pattern-message naming scheme
and b) not be so name-clashy