add basic tag functionality