add check for recovering node