#152: oops, check params at the right time