sessions

added session write/read for previous values