only expose patch api functions.