added Inventory read/write util methods