update and document API