change class structure in "session" module