changes made to try and get the hosted site to locate the /api