added DISCARD support