added repl code for perf testing