psrlist/writedag improvements