update version of api to 4