safer destructor
clone the repo and copy it