adds missing return statement in I/O related code

whoops.