moved repl loop into seperate file