adapt to API v0.5.2