issue with temp files on server, logging added