add check for on_failure