add some network manager code