basic works for nested directory