modulize session manager