filter in l1 and l2 as well (should really generalize this stuff by one generic script driven by a config file...)