fixed handling of newlines