add some logs for the debug level here