migrate to yaml config