apply class names to metadata containers