add initial file filtering by extension (not working perfectly yet)