network logic