update API design