update read yaml interface