changed subprocess to shutil.copy2, added some try,excepts