add API for categories