more work for bug 808370: got console.trace() to work. wrote a patch for bug 787985 as well