Align to lib. Add .markDirty() to inventory adapters