minor fixes in protocols