atempt to fix some tmp garbage collecting things