directory isn't intended to be tmp, but could do ``mkdtemp(prefix='ag_mod_')``... kk, will try