debug-compiling private modules as public

* still trying to figure out how to raise exceptions on private
  modules without wrapping function calls.