modify return value of withProcessHandle