first version of session table - working