debug -- add explit eol to write.table