simplified loading settings, fixed bug that sometimes crashed during load_settings()