add category and nullIfNotExists flags