refactor...clean way to get tags