bug fixed
ready for generating temporary filename with pid prefix