extract_layers
