adding categories now integrates with the new category data structure