working on hostname resolution