refactor_handshake
message: stub pack/1 and pack/2
message: types