adapt to API V0.5.2