make fetching if of metrics more robust, add more logging