small tweak to allow better error handling of web errors