added debug mesages to log