remove protocols field
handle exceptions gracefully