small output changes to filtering script