debug = true in api