remoing sessions from corpus mask fixes #1714

the session and sessions were not being used in corpus mask so removing the loading seems to have fixed the undefined problem
removed other things that werent used