improved copy-job script