better hostname resolution in the targeting