add check for "*pcerts" ptr