add option to enable extra warnings