make protocol max_outbound configurable.