add basic support for categories