final fix for reoccuring issue with empty config file after the first run