starting work on tag pattern matching