fixing namespaces and rename hasCategory to hasTag