change int to double in load_config()