use the location header rather than hardcoding the host