modify session for production