add escape support for CATEGORIES