logging tags first