code: bugfix on preproc (index direction) and viz tool