update for 0.4.0.M1 api