return a thunk from load