added unix line ending support