bring back container_recover code