better prompt handling for repl
version 0.0.6