fix storage api for cloud storage