fix hostname lookup