added some networking stuff