added code for phase 2 of measurement study
changed handling of negotiation of other protocols