adding cloudshare checks

Apologies in advance if I misunderstood the code.