added support for configuring protocol