better error reporting, adding URL