refactor yaml config file