add set -e to mountdir