revisions to store inventory and error handling when no data connection is available