added write_rdump