added some native codes for test