handshake when access publicly