update to use new api
Release 0.4.0