save scope as string