implement r_io_mwrite // yum yum copy-pasta