convert to cloud api