removed initialize, not needed, targetfolder passed via global variable