init for sessions, matches