some networking stuff debugged