added id to publication temp files to avoid conflict when running multiple instances