add support for multiple name dirs