fixup http api calls