added TAG functions existsTagName() and setContactTag()