write file contents when cloning