modularized opti-var setUp