read configs from YAML