added support for newline in fields