debug api modification