beginning implement of file filtering AGAIN