add YAML support for layers config