bugs: bad error handler, stale elements