hacks for handling eols and tabs