adapt to Isabelle 48a745e1bde7