initialize inventory, resister vm