added hostname to resolve redirects