minor cleanups of linewrap code