moving shared session info to new Shared class, and removing legacy stuff