add SAP function and has been tested on Shenzhen