now using categoryAttr / categoryFunc instead of categoryAttribute.