added option for useLocalFolderStructure