haven't been finished.

add a log function for x2 msgs