debug API DONE