split files and add repl