modified setAPIPrefilter