update protocols
tools/ -> lib/
upgrade protocola