initial working yaml writer