read config from yml