fix error handling for options+priority