session handling & table creation