fix issues & add some log for ios