setup dirs and files