add ability to generate tags for relations