move session init  before static