creating directory structure for each component