small fixes in addProtocol form
Close #1 by 2286c302