setting up directories and stuff