add preliminary tagging functionality