gracefully handle missing hostname