about to put networking code in a new class