script for running in the cloud