update api and release 0.2.0