local-ize a bunch of variables and tables