debug for prev/next/swing setup