add parent pid code, not test, need test