pushing up a very buggy version of session controller for Mathilda to look at