added cloud code