debug and api call updates