added some key agreeing