probably this will solve the handshake problem