simplified logic of getting to child dirs