added flag for dwt output only