remove -pairs option, too expensive in practice
replace use-once variable with comment
BUG don't try to Close invalid file