history api debug