stub history api