Make console read much more robust (and line oriented)