reload functionality for repl