added some logic for creating net agreemnt. Still needs some work