netiomux refactor

netiomux refactor