add checkpid
check