added checkReady method