added flag for gate-structure output