working on moving networking to different file