add collectionapi, not tested yet