fighting with tmp dir