use defaultFailureCallback and save some lines