changed mv to cp to avoid losing files;