move scan to NetworkConfig.lua