added error handling for private inventories.