add getContents wrapper to inventory