started crypto update; fixed some bugs in circuit handshakes