line-endings checking added