upadte writing to use yml data