simplified network thread function
removed TODO note