r3f cleanup