added repl ns, removed old ray code