get host names api call fix + new method for retrieving host names