using random directory to store temp files