the filtering scrpt works with the addition of 2 extra columns - filtered output is also avaialble here