ap gp detection