mod/os: redirect output