- make network mode more reliable
Merge pull request #95 from hadfl/network_mode

- make network mode more reliable