set up dirs and files