rewrite cybin protocol

@lxyu