fixed so we don't send an extra blank line at end of file input