corrections to API