fixes to line updating