add protocol to config
Merge pull request #29 from amco/add_protocol_option

add protocol to config