tag msgs with id