handle 0 api use better