rough draft of saveSession script