sets up directory structure