working on better support for REPL like shells