monkey patch for sunspot