This pull requests adds pre/post-clone hooks