fixing the cloud_name and refresh_server function