started to add the newsession functionality