working version of tcloud