add protocol
add msg register and callback. in common module