improve r_io_mread