debugging api