added debug output to gearman lib