update api and binary to 0.5.0.