adding support for directories/multiple configurations