reimplemented the try/except on module loading