remove temp file dependency

I quickly tested this and it seems to work. Don't merge it before I double check myself though :smile: