add reset method to reset process id pid