separate the code handling the annotation uploading