fixed insidious problem with io jumping out of register