add code for simple network connections