implementing 'chidiff' condition locally until/if it gets put into the core engine