add setting for thread pool and metadata error