removed session.discard until it is ready