updated metric listener. removed comments to expose errors.