debug = options.debug ? function(){
    var args = Array.prototype.slice.call(arguments);
    debugLogger.write(args.join(' ')+'\n');
  } : function(){};