started refactoring of network handling. Still needs some cleaning up.
why oh why does it always ignore the atomputwriter?