nit set -x as well for diagnostic output