added perms,wifi check..still need to query iriscouch cloud