bugfix
Add support for session
Change a temporary file structure
Add support for session control