update api for 1.x