avoid incorrect `use of undeclared` errors

test plan: none