merge yanl write fix from myke