revert temp file stuff
figure this out later