working on consumable api