added noeol support