fix spurious newline bug
todo