miscellaneous fixes

This is a shared branch containing improvements too small for individual PRs.

Feel free to push to it. It'll be merged before the end of the week.
you could write some SUPER ugly reflection code that grabs the call stack, analyses the caller function and queries which package its in... Other than that we are stuck with this approach.