moving repl to separate files