fix client namespace, remove printf and replace Attribute with KeyValuePair