change impls to fit the api changes
Merge pull request #4 from LeiZeng/master

flex style
fix create client position
Merge pull request #5 from kiddkai/master

upmerge