update native session model and fixed thread sync