feat(engine-rest) added clone and replace
fix(engine-rest) clone and replace