adapted code to new version of config-file-net.