generalize load to arbitrary upcall