fix cloud api
cleanup cloud