Revert "fixed network detection"

This reverts commit fddd451a974355134cdd49c39e530311a0ab70ee.
Revert "Revert "fixed network detection""

This reverts commit a935d7c19f5984030fe9b6f4f8e0aaa2bd5c046a.
changes
Revert "changes"

This reverts commit a935d7c19f5984030fe9b6f4f8e0aaa2bd5c046a.
removeal
rolled back