resolve cloud_url in main()