add protocol to config