enhance debug log
[bugfix] we need to set the message status to completed after we made a response
several bug fixes