do a better job of exposing errors in module loading