prefetching boilerplate