add remote repl fn