adds proper mod support for the IO class