paramaterize tmp dir