original read_n_xrdcp