clean up API