added AGM related functionality