added session controller for iphone test