fix getlines