set a trace function for debug
use goo.gl to shorten urls