fixed read_config()