add handleAccept and handleAcceptReply, need testing