added a simple session tracker