patched ready-state check