new changes for using nsurlsession to download the events