add temporary tupfile in static and fix log path