adapt to pegasus v0.9.0