add option to fail on strict mode