change tag_accept by mtag_accept as this function accepts multiple tags.