- added new NetworkUtils class
- code refactoring