make more robust, like metric configuration