added optional prefix support for setTags