chain: better preload generation algorithm