vector_layers should be top-level