add load_config function to load settings from plain text file