[UPDATE] move get opening session to template object