rewrite subfolders