move replThread into repl pkg