added extra debugging