move session start to index file