update session generator and tempalte