api prototype to save and load workspaces