add warning defs; add warnings to demo page