added API to check actual internet access state;