the model is now serializable. fixed inventory persistence.