beginings of repl