update to 2.0 api