disambiguate "pid" in function names