lw changes for genscan modes