simplified network configuration
fixed deprecation warning