fix of threading, now works
listing files to consider