new line flag causes issues