added more debug mesages