WIP: repl improvements, initial hacking on registry