is this inherited from the scala repl? this is a bit ugly with all these comments.