bash -e errors out on failed copy; fix later