chmod 777 some created tmp files to avoid permission problems when other users overwrite