added helper stuff on session and values