update todo
extract param-setting to its own method, and reset debug/params on isMatch()