feat(engine-rest) added clone and replace