move session config to core