fix GetConfigItem/GetKeys and add GetNumberOfNetworkInterfaces