add ioHooks for syscmd and error function