bootstrap with repl fix, and a test for it