switched outside- tag on metadata to layer_type from media_type