use with-open in admitter