fix config
refine the code
Refactor the message passing
refactor the message passing layer.