split load and generate