added some networking stuff (WIP)