removed checkForReady double call