adding debug
adding cm api call