fix exceptions to work within the namespace