changing to Collection+JSON api