improved lcd line  overflow handling