add mode to validation
Merge remote-tracking branch 'origin/dip' into dip