move yaml logic