added next_id method to Mango::Protocol