refactor tag-related things