starting to implement session controller