- add code to verify the isSpatial flag