fixed networking bugs