moving around set -e to see if that changes anything