update api for debugging