bugfix: cache typo error
improve: tenant config use tree array structure, can be accessed fro js