support the whole dir