fixed tmp naming to reflect addressing on the server (for web-clients) added file extensions to the tmpfiles