switched api to version 3