add spatial filter support