put cloud calls in thread, modified cloud class