update pcred functions