fixed sync,and calculate
logout goback