working on generating directory structure