initializing directory structure