reworked network flow; a bit more arbitrary and needs some improvement