resource api recursive clone ok