fixed a bug where the copy exec would run every time