bugfix to catch all potential errors, also Unauthorized