loadEvents documentation