transform layout after read_yaml