add hooks for adding custom failure classes