fixed networking code