changed protocols, edited parameter tmpvariables to tmpfolders/files created by a function in the header