implemented more tag metadata checking (consistency and missing fields).