updated file structure and set up sessions