set -e is weird sometimes