inventory: adjust for the datastate() data format