added initial networking code for boilerplate