fixed problem with protocol