with threading, for 2 folders