initial working version of mks
revamping session to use mks