modify RawserverEndpoint