removed localhost from REST calls