move out private defs from let, for easier repl fu
a bit more debugging support