added sync support for workspaces