session: add convenience constuctor