updated for changes to the collections api