fixing cusom exceptions