fix break when adding subfolders and docs