automatic subtarget enumaration