rw_restore.c added