updating to 2.1 api