Global import and hostname instead of netloc