fixes namespace lookup issue with exception classes