reference setup generation