updated uid_blob with a check on pid