misc

add debug option to do selective assertion
strip location prefix though ugly