add support for defining spaces as using the new Preview API