need to fix some things in AddLastRows and PsiToV, but single mode still works