reorganizing hooks and config, piping stacktraces to log
repl now using current config, swapped out with-redefs for binding