somre fixes on memory, and counter in session counter