fix of selector, implemented bufferToProtocol