session init work