added backup recovery support to agent