allow shorten() to access globalvar ip