changes to make getmapbox package work with V4 api