flag handling improved, config flag introduced for config-file override