added correct lineendings for final new line feature