changes to make annotation download work properly