fixed the compatibility issue on Origin getting in the different version protocols; added handshake request validating api