added filtering to polylist directive