devirtualize command almost ready

-also fixed a crash bug with cables.