changed behavior on determining state of the cloud app