is there a problem with ```@with_tempfile``` decorator?  should reduce the code and assure that those get removed upon failures.