final touches to cloud code