setting up & tearing down of workspaces