directory depth is dynamic