setting up the file and directory infrastructure