more updates for bad pid check