properly handle async repl commands, add split