an important update for protocol module
prepare for merging protocol, mongo and mysql