move protocol flags to the handler, add a pointer to the handler in the proto state...