fixed extra line endings around sent data