implemented network_server into main; new shutdown flow; etc ..