adapting for cloud deployment