fixed issue #39, async working in repl