changes to cloud code