add: feature for wireprotocol
add: test feature for wireprotocol, and fix some bug while testing