added extra logging