minor adjustments to cloud scripts