some progress on lang
more sensible repl behavior