clean up homework networking code