clean up apis