used pytests tmpdir fixture