move check for remote io error