more updates to cloud code