support multi-dirs