some NetworkModule refactoring and basic UDP functionality