allow persisting of sessions. closes #19