handshake API

In or out?