add 'folder check'