this got changed in develop, I don't think this will compile, there is no Mode.mode.

You want something like Mode.putMode((m, args)) and you pass that to the Job, where m is the mode for the repl (which is loaded from that script file).