add set -x for debugging