add check pid process functionality