api improvement