support highly-nested metric