api calls changed to relative urls