adjust options parsing for new error handling method