implemented agreement id reuse