remove 'localhost:.." from api calls