added more checks

blockIOS prompt function