added stackcolumns mode, that preserves columns instead of lines.