Corrections to api functions