change the way that sessions are created