fix exception heirarchy