some changes on reg_IO who is now called switch_proc