added \\n at the end for curl=true