fix network module

some fix for network module
unused vars