build each index in its own child process