setting up directories and files