fix to work without a config file