check for ready state