some api changed & add initStructrue

some api changed & add initStructrue