p2: more verbose/debug_flags checks. also set $^X