adding more instance status detection.