fix writing
use the magic of lazy-seq's properly