fixed regressions in conneg and querying
forgot debug code