add schema
smarter session unset
cache room structure
refactor main, requires smarter refactoring