fix printing commands that produce tags.