fixing networking: done, not sure if functional