sessionmanager implemented, almost finished