add samples and support verison 9