Some improvements to the irtual IO code