add the AD function library